﻿using Htx.Fur.Application.System.Dtos;
using Htx.Fur.Core.Entities;
using Mapster;

namespace Htx.Fur.Application
{
    public class Mapper : IRegister
    {
        public void Register(TypeAdapterConfig config)
        {
            config.ForType<UserInfo, UserDto>()
                .Map(dest => dest.Alise, src => src.Code);

            config.ForType<UserDto, UserInfo>()
                .Map(dest => dest.Code, src => src.Alise);
        }
    }
}
